Platform Explorer / Nuxeo Platform 2021.24

Contribution org.nuxeo.ecm.platform.comment.lifecycle--lifecycle

This contribution is part of XML component org.nuxeo.ecm.platform.comment.lifecycle inside nuxeo-platform-comment-2021.24.3.jar /OSGI-INF/comment-life-cycle-contrib.xml

Extension Point

Extension point lifecycle of component LifeCycleService.

Registration Order

3
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <lifecycle defaultInitial="moderation_pending" name="comment_moderation">
    
          <transitions>
            <transition destinationState="moderation_published" name="moderation_publish">
              <description>Approve the comment</description>
            </transition>
            <transition destinationState="moderation_rejected" name="moderation_reject">
              <description>Reject the comment</description>
            </transition>
          </transitions>
          <states>
            <state description="Default state" name="moderation_pending">
              <transitions>
                <transition>moderation_publish</transition>
                <transition>moderation_reject</transition>
              </transitions>
            </state>
            <state description="Comment published" name="moderation_published"/>
            <state description="Comment Rejected" name="moderation_rejected"/>
          </states>
    
        </lifecycle>

    Reject the comment

XML Source

<extension point="lifecycle" target="org.nuxeo.ecm.core.lifecycle.LifeCycleService">

    <lifecycle defaultInitial="moderation_pending" name="comment_moderation">

      <transitions>
        <transition destinationState="moderation_published" name="moderation_publish">
          <description>Approve the comment</description>
        </transition>
        <transition destinationState="moderation_rejected" name="moderation_reject">
          <description>Reject the comment</description>
        </transition>
      </transitions>
      <states>
        <state description="Default state" name="moderation_pending">
          <transitions>
            <transition>moderation_publish</transition>
            <transition>moderation_reject</transition>
          </transitions>
        </state>
        <state description="Comment published" name="moderation_published"/>
        <state description="Comment Rejected" name="moderation_rejected"/>
      </states>

    </lifecycle>

  </extension>